<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.util.List"%>
    <%@page import="org.jmu.entity.Colleges"%>
<!DOCTYPE html>
<html>
<%  
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";  
%>  
<base href="<%=basePath%>">
<head>
  <meta charset="utf-8">
  <title>Layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="<%=path%>/views/static/layui-v2.5.6/layui/css/layui.css"  media="all">
</head>
<body>

<div class="site-demo-button" id="layerDemo" style="margin-bottom: 0;">
  <button data-method="notice" class="layui-btn layui-btn-radius" onclick="window.location.href='views/static/background.html	'" style="position:absolute;left: 30px;top: 55px;"><i class="layui-icon"></i>返回首页</button>
</div>


<form class="layui-form" lay-filter="example" action="controller/querycollegeBycollege_name" method="post"  enctype="multipart/form-data">
  <div style="position: absolute;top: 60px;left:400px;">
  <div class="layui-form-item">
    <label class="layui-form-label">院校查询</label>
    <div class="layui-input-block" style="width: 230px;">
    <%String collegename = (String)session.getAttribute("collegename"); %>
      <input type="text" name="collegename" lay-verify="title" value="<%=collegename %>" placeholder="请输入院校名称" autocomplete="off" value="" class="layui-input" >
    </div>
  </div>
 
  <div class="layui-form-item" style="position: absolute;top: 30px;left:250px;">
    <div class="layui-input-block" >
      <button type="submit" class="layui-btn layui-btn-radius" lay-submit="" lay-filter="" style="position: absolute;top: -30px;">Go!</button>
    </div>
  </div>
</div>
  
</form>
        
<div class="layui-tab layui-tab-card">
  <ul class="layui-tab-title">
  	<li></li>
  	<li></li>
    <li class="layui-this"><span style="font-size: large;font-weight: bolder;font-family: 宋体;">北京院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">上海院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华北院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华东院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华中院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">华南院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">东北院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">西北院校</span></li>
    <li><span style="font-size: large;font-weight: bolder;font-family: 宋体;">西南院校</span></li>
  </ul>
  <br>
  <br>
		<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  			<legend><span style="font-size: large;font-weight: bolder;">查询结果</span></legend>
		</fieldset>
 
		<div class="layui-form">
		  <table class="layui-table">
		    <colgroup>
		      <col width="150">
		      <col width="150">
		      <col width="200">
		      <col width="200">
		    </colgroup>
		    <thead>
		      <tr>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校名称	</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">所在地</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">院校隶属</span></th>
		        <th><span style="font-size: large;font-weight: bolder;font-family: 宋体;">招生简章</span></th>
		      </tr> 
		    </thead>
		    <tbody>
		    
		    <%Colleges college = (Colleges)session.getAttribute("college"); %>
		      <tr>
		        <td><a href="<%=college.getCollege_url() %>" target="_blank"><%=college.getCollegename() %></a></td>
		        <td><%=college.getPlace() %></td>
		        <td><%=college.getCollege_belong() %></td>
		        <td><a href="<%=college.getRecruit_message() %>" target="_blank">查询</a></td>
		      </tr>
		    </tbody>
		  </table>
</body>
</html>